package com.qyhl.school.school.vlog.theme;

import com.qyhl.webtv.commonlib.entity.school.SchoolThemeBean;

import java.util.List;

public class SchoolVlogThemeListPresenter implements SchoolVlogThemeListContract.SchoolVlogThemeListPresenter {
    private SchoolVlogThemeListModel mModel;
    private SchoolVlogThemeListContract.SchoolVlogThemeListView mView;

    public SchoolVlogThemeListPresenter(SchoolVlogThemeListContract.SchoolVlogThemeListView mView) {
        this.mView = mView;
        this.mModel = new SchoolVlogThemeListModel(this);
    }


    @Override
    public void getList(int lastId) {
        mModel.getList(lastId);
    }

    @Override
    public void setList(List<SchoolThemeBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
